<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<html>
<head>
	<link href="./css/style.css" rel="stylesheet" type="text/css" /> 
	<link href="./css/menu.css" rel="stylesheet" type="text/css" />
	<script type="text/javaScript" src="./scripts/menu.js"></script> 
	<script type="text/javaScript" src="./scripts/common.js"></script>
	<script type="text/javaScript" src="./scripts/jquery.1.7.js"></script>

	<link rel="stylesheet" href="./css/jquery-ui.css" type="text/css" />
	<script src="./scripts/jquery-ui.js" type="text/javascript"></script>	
<title>Human Resource Entry</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<html:form action="/empSubordinateUpdate">
	<div>
		<html:hidden property="id"/>
		<html:hidden property="empNumber"/>
		<br/>
		<table>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Subordinate: *</label></td>
				<td>
					<html:text styleId="employeeTextBoxId" property="subNumber" style="width:220px;" onkeyup="retrieveURL('employeeAjax', 'employeeTextBoxId');"></html:text>
				</td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"><label>Reporting Method: *</label></td>
				<td>
					<html:select name="empSubordinateUpdate" property="reportingMethod" style="width:220px;">
						<html:optionsCollection property="allMethods" label="label" value="value" />
					</html:select>
				</td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"></td>
				<td><a style="color: red;"><bean:write name="empSubordinateUpdate" property="message"/></a></td>
			</tr>
			<tr>
				<td class="txtLabel" style="width:130px;"></td>
				<td>
					<logic:equal name="empSubordinateUpdate" property="isAddNew" value="true">
						<input type="button" value="Add" name="btnAdd" class="sbutton" id="btnAdd" onclick="postParams('act=add&btnAdd');"></input>
					</logic:equal>
					<logic:equal name="empSubordinateUpdate" property="isAddNew" value="false">
						<input type="button" value="Edit" name="btnEdit" class="sbutton" id="btnEdit" onclick="postParams('act=edit&btnEdit');"></input>
					</logic:equal>
					<input type="reset" value="Reset" class="sbutton"></input>
				</td>
			</tr>
		</table> 
	</div> 
	</html:form>
</body>
</html>